<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %>
<div style="height:440px;width:500px;">
<div style="height:40px;width:100%;">
<form class="form-inline" id="onclientform1" onsubmit="queryoncList1();return false;">
	<input name="type"type="text" />
	<input class="btn" type="button" value="查询" onclick="queryoncList1()" />
</form>
</div>
<div style="height:400px;width:100%;">
<table id="oncList1" style="padding:10px;" ></table>
</div>
</div>
<script>
	var oncList1 = $("#oncList1").datagrid({
			url: path+'/onlinec/liston',
			fitColumns: true,
		    columns:[[
			    {field:'acc',title:'账号',align:'center',width:150},
			    {field:'pwd',title:'密码',align:'center',width:150},
			    {field:'type',title:'类别',align:'center',width:150},
			    {field:'workbeach',title:'Vps',align:'center',width:150},
			    {field:'clientid',title:'ClientId',align:'center',width:150}
	            ]],
			pagination: true
    	})
    	
    	function getonclist1(){
    		var row = gcheckedRow(oncList1);
			if(row==-1){
				alert("只能选择一条数据");
				return ;
			}
			return row.workbeach+","+row.clientid;
    	}
		
	function queryoncList1(){
		oncList1.datagrid("load",$("#onclientform1").jsonForm());
	}
</script>
